package com.gzu.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;

/**
 * 用户行为表
 * @TableName t_user_behavior
 */
@TableName(value ="t_user_behavior")
@Data
public class UserBehavior implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 商品ID
     */
    private String thingId;

    /**
     * 二级标签ID
     */
    private String classificationSecondId;

    /**
     * 用户行为： 1 pv 2 buy 3 collect
     */
    private String behavior;

    /**
     * 执行时间
     */
    private String timestamp;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}